package com.sdry.service.impl.lz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.mapper.lz.SamplekeepMapper;
import com.sdry.model.lz.LzQueryCriteria;
import com.sdry.model.lz.Samplekeep;
import com.sdry.service.lz.SamplekeepService;

/**
 * 
 * @ClassName SamplekeepServiceImpl
 * @Description 留样管理
 * @Author lz
 * @Date 2018年12月24日 15:11:10
 * @Version 1.0
 */
@Service
@Transactional
public class SamplekeepServiceImpl implements SamplekeepService{

	@Resource
	SamplekeepMapper samplekeepMapper;

	@Override
	public Long addSamplekeep(Samplekeep samplekeep) {
		return samplekeepMapper.addSamplekeep(samplekeep);
	}

	@Override
	public Long deleteSamplekeepById(long id) {
		return samplekeepMapper.deleteSamplekeepById(id);
	}

	@Override
	public Long editSamplekeepById(Samplekeep samplekeep) {
		return samplekeepMapper.editSamplekeepById(samplekeep);
	}

	@Override
	public List<Samplekeep> querySamplekeep(LzQueryCriteria criteria) {
		return samplekeepMapper.querySamplekeep(criteria);
	}

	@Override
	public int countSamplekeep(LzQueryCriteria criteria) {
		return samplekeepMapper.countSamplekeep(criteria);
	}

	@Override
	public Samplekeep queryFilesURLById(String id) {
		return samplekeepMapper.queryFilesURLById(id);
	}
}
